Script: --on windowEvent wdID,wdName,objNo,objName,objValue¬¬Global oldAbbreviation, oldName, selectedTitle, selectedCardName, theCreatedTitle¬Global cMaxCardNameLength, titleList¬Global gComicTitleWindowID¬global gWindowPositions, serialNum, gPublisherList¬global gDefaultPublisher, gDefaultCopyright, gDefaultMatureReadersOnly¬¬-- theCreatedTitle is set by Import to give default name for a new title¬¬---------------------¬-- This is window #4¬---------------------¬¬if objValue="Open" then¬ -- Store off the ID of this window¬ -- so we can use it to refer to later after the name has¬ -- changed (or the name is a numeric, e.g. "1963"¬ set cursor to watch¬ put wsGet("Comic Title","0", "ID") into gComicTitleWindowID¬ ¬ -- Restore old window position¬ put OldWindowPosition(4) into windowRect¬ if windowRect = empty then centerWindow "Comic Title"¬ else wsSet gComicTitleWindowID,"0","Rect",windowRect¬ wsSet gComicTitleWindowID,"PublisherPop","Text",getColumn(gPublisherList,1,1,tab) & return & "-" & return & "Other…"¬ if selectedTitle = empty then¬ -- New title¬ put empty into oldName¬ put empty into oldAbbreviation¬ ¬ if theCreatedTitle ≠ empty then¬ -- New title being defaulted to by the import procedure¬ wsSet gComicTitleWindowID,"0","Name", theCreatedTitle¬ put createAbbreviation(theCreatedTitle) into theAbbreviation¬ get "Name_WhiteColor:-8739,-8739,-8739" & return & "i23_Visible:False" & return & "Abbreviation_Text:" & theAbbreviation & return & "Name_Text:" & theCreatedTitle & return & "Name_LockText:True" & return & "Modified_Text:" & return & "i11_Hilite:False" & return & "Save_Disabled:" & (gDefaultPublisher = empty) & return & "PublisherPop_SelectionText:" & gDefaultPublisher & return & "Copyright_Text:" & gDefaultCopyright & return & "i11_Hilite:" & gDefaultMatureReadersOnly & return & "Copyright_Selection:0,1000" & return & "YearsPublished_Text:" & return & "DescriptionModified_Text:" & return & return & "Created_Text:" & return & "ModifiedLabel_Visible:False" & return & "DescriptionModifiedLabel_Visible:False" & return & "CreatedLabel_Visible:False" & return¬ wsSet gComicTitleWindowID,0,"Properties",it¬ else¬ -- Regular new title¬ wsSet gComicTitleWindowID,"0","Name", "New Title"¬ get "Abbreviation_Text:" & oldAbbreviation & return & "Name_Text:" & oldName & return & "PublisherPop_SelectionText:" & return & "Save_Disabled:True" & return & "Modified_Text:" & return & "i11_Hilite:False" & return & "Save_Disabled:" & (gDefaultPublisher = empty) & return & "PublisherPop_SelectionText:" & gDefaultPublisher & return & "Copyright_Text:" & gDefaultCopyright & return & "i11_Hilite:" & gDefaultMatureReadersOnly & return & "YearsPublished_Text:" & return & "DescriptionModified_Text:" & return & "Created_Text:" & return & "ModifiedLabel_Visible:False" & return & "DescriptionModifiedLabel_Visible:False" & return & "CreatedLabel_Visible:False" & return¬ wsSet gComicTitleWindowID,"0","Properties",it¬ wsSet gComicTitleWindowID,"Name","Selection", "0,250"¬ end if¬ else¬ -- Existing title¬ put char 1 to cMaxCardNameLength of selectedTitle into selectedCardName¬ put find(titleList,selectedTitle,"Line","Begin") into selectedTitleNum¬ if selectedTitleNum > 0 then¬ wsSet gComicTitleWindowID,"0","Name", selectedTitle¬ put fld "Publisher" of cd selectedTitleNum of bg "Title" into thePub¬ put line 1 of thePub into pubName¬ put line 2 of thePub into copyrightLine¬ put line 3 of thePub into descriptionModified¬ put line 4 of thePub into pubDates¬ put line 6 of thePub into createdDate¬ put fld "Title" of cd selectedTitleNum of bg "Title" into oldName¬ put fld "title Abbreviation" of cd selectedTitleNum of bg "Title" into oldAbbreviation¬ get "Abbreviation_Text:" & oldAbbreviation & return & "Name_Text:" & oldName & return & "PublisherPop_SelectionText:" & pubName & return & "Copyright_Text:" & copyrightLine & return & "Modified_Text:" & (fld "Title Date Modified" of cd selectedTitleNum of bg "Title") & return & "i11_Hilite:" & (the hilite of bg btn "Mature Readers Only" of cd selectedTitleNum of bg "Title") & return & "YearsPublished_Text:" & pubDates & return & "DescriptionModified_Text:" & descriptionModified & return & "Created_Text:" & createdDate & return & "ModifiedLabel_Visible:True" & return & "DescriptionModifiedLabel_Visible:True" & return & "CreatedLabel_Visible:True" & return¬ wsSet gComicTitleWindowID,0,"Properties",it¬ wsSet gComicTitleWindowID,"Name","Selection", "0,250"¬ end if¬ end if¬ ¬ set cursor to arrow¬else if objValue="Close" then ¬ -- save the window position¬ put "4" & tab & wdName & tab & wsGet(wdID,"0","Rect") into line 4 of gWindowPositions¬ ¬end if¬¬--end windowEvent
Balloon: Click here to save any changes you have made to this title.
ItemType: PUSH
Rect: 241,167,321,187
Name: Cancel
CancelItem: TRUE
AutoClose: TRUE
Balloon: Click here to cancel any changes you have made to this title.
ItemType: TEXT
Rect: 40,16,114,28
TextFont: Geneva
TextSize: 9
Name: NameTitle
WhiteColor: -8739,-8739,-8739
TextStyle: Bold
TextAlign: Right
Text: Title Name:
ItemType: TEXT
Rect: 296,39,386,51
TextFont: Geneva
TextSize: 9
Name: AbbrevTitle
WhiteColor: -8739,-8739,-8739
TextAlign: Right
Text: Title Abbreviation:
ItemType: TEXT
Rect: 47,39,114,51
TextFont: Geneva
TextSize: 9
Name: PublisherTitle
WhiteColor: -8739,-8739,-8739
TextStyle: Bold
TextAlign: Right
Text: Publisher:
ItemType: TEXT
Rect: 114,14,415,30
TextFont: Geneva
TextSize: 9
AutoSize: FALSE
Name: Name
LockText: FALSE
Balloon: This is the name of this comic title. Use library format for titles beginning with “A” or “The” (e.g., “Amazing Spider-Man, The” instead of “The Amazing Spider-Man”).
Script: --on closeField wdID,wdName,objNo,objName,objValue¬send HandleTitleEntry to cd 1 of bg "Title"¬--end closeField¬
ItemType: TEXT
Rect: 389,39,419,52
TextFont: Geneva
TextSize: 9
AutoSize: FALSE
Name: Abbreviation
WhiteColor: -8739,-8739,-8739
Text: STE
Balloon: This is a short abbreviation used to refer to this title.
Balloon: Choose the name of this title’s publisher here. Use “Other…” if the publisher is not listed.
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬Global gComicTitleWindowID, serialNum, gPublisherList¬¬put wsGet(gComicTitleWindowID,"PublisherPop","TextOfSelection") into newPublisher¬put wsGet(gComicTitleWindowID,"Name","Text") into newName¬put wsGet(gComicTitleWindowID,"Abbreviation","Text") into theAbbreviation¬¬if newPublisher = "Other…" then¬ Get Windowscript("Other Publisher")¬ put line 2 of it into newPublisher¬ if newPublisher <> empty then ¬ wsSet gComicTitleWindowID,"PublisherPop","SelectionText",newPublisher¬ wsSet gComicTitleWindowID,"Copyright","Text",newPublisher¬ wsSet gComicTitleWindowID,"Copyright","Selection","0,3200"¬ end if¬else ¬ put find(getColumn(gPublisherList,1,1,tab),newPublisher,"Line","Exact") into whereFound¬ if whereFound > 0 then¬ put line whereFound of GetColumn(gPublisherList,2,2,tab) into theCopyright¬ wsSet gComicTitleWindowID,"Copyright","Text",theCopyright¬ end if¬ wsSet gComicTitleWindowID,"OtherPublisher","Visible", "false"¬ wsSet gComicTitleWindowID,"OtherPublisher","TEXT", empty¬ wsSet gComicTitleWindowID,"Copyright","Selection","0,3200"¬end if¬¬put (newPublisher = empty) or (newName = empty) or (theAbbreviation = empty) or (serialNum = empty) into saveDisabled¬wsSet gComicTitleWindowID,"Save","Disabled", saveDisabled¬--end mouseUp¬¬
ItemType: PUSH
Rect: 12,167,92,187
Name: Remove
AutoClose: TRUE
Balloon: Click here to remove this title and all its associated information from the ComicBase.
ItemType: CHK
Rect: 299,112,415,124
TextFont: Geneva
TextSize: 9
WhiteColor: -8739,-8739,-8739
Name: Mature readers only
Balloon: Check this item if the title should only be seen by mature readers.
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬Global gComicTitleWindowID, serialNum¬¬put wsGet(gComicTitleWindowID,"PublisherPop","TextOfSelection") into newPublisher¬put wsGet(gComicTitleWindowID,"Name","Text") into newName¬put wsGet(gComicTitleWindowID,"Abbreviation","Text") into theAbbreviation¬¬put (newPublisher = empty) or (newName = empty) or (theAbbreviation = empty) or (serialNum = empty) into saveDisabled¬wsSet gComicTitleWindowID,"Save","Disabled", saveDisabled¬--end mouseUp
ItemType: TEXT
Rect: 45,65,114,77
TextFont: Geneva
TextSize: 9
Name: Copyright Title
WhiteColor: -8739,-8739,-8739
TextStyle: Bold
TextAlign: Right
Text: Copyright:
ItemType: TEXT
Rect: 114,62,415,102
TextFont: Geneva
TextSize: 9
Name: Copyright
LockText: FALSE
KeyFilter: obsOnlyAny
Balloon: Enter the appropriate copyright information for the picture shown. This information can be found on the bottom of the first story page on most comics.
Script: --on closeField wdID,wdName,objNo,objName,objValue¬Global gComicTitleWindowID, serialNum¬¬put wsGet(gComicTitleWindowID,"PublisherPop","TextOfSelection") into newPublisher¬put wsGet(gComicTitleWindowID,"Name","Text") into newName¬put wsGet(gComicTitleWindowID,"Abbreviation","Text") into theAbbreviation¬¬put (newPublisher = empty) or (newName = empty) or (theAbbreviation = empty) or (serialNum = empty) into saveDisabled¬wsSet gComicTitleWindowID,"Save","Disabled", saveDisabled¬--end closeField
ItemType: TEXT
Rect: 12,112,114,124
TextFont: Geneva
TextSize: 9
Name: YearsPublishedTitle
WhiteColor: -8739,-8739,-8739
TextStyle: Bold
TextAlign: Right
Text: Years Published:
ItemType: TEXT
Rect: 114,110,291,126
TextFont: Geneva
TextSize: 9
AutoSize: FALSE
Name: YearsPublished
LockText: FALSE
KeyFilter: obsOnlyAny
Balloon: These are the years during which this title was published. Enter information i the form "1955-1956" or "1977-1979, 1985-Present".
Script: --on closeField wdID,wdName,objNo,objName,objValue¬global gComicTitleWindowID¬¬put objValue into dateString¬¬put wsGet(gComicTitleWindowID,"PublisherPop","TextOfSelection") into newPublisher¬put wsGet(gComicTitleWindowID,"Name","Text") into newName¬put wsGet(gComicTitleWindowID,"Abbreviation","Text") into theAbbreviation¬¬put DatesToMask(dateString) into dateMask¬if word 1 of dateMask contains "Error" then¬ Get Windowscript("Stop Alert", "Those dates don’t make sense. Please use the form “1979-1985” or “1963-1974, 1985-Present”")¬ wsSet gComicTitleWindowID,"YearsPublished","Text",empty¬end if¬¬put (newPublisher = empty) or (newName = empty) or (theAbbreviation = empty) or (serialNum = empty) into saveDisabled¬wsSet gComicTitleWindowID,"Save","Disabled", saveDisabled¬--end closeField¬
ItemType: BOX
Rect: 13,134,414,135
BlackColor: -26215,-26215,-26215
ItemType: TEXT
Rect: 10,137,53,149
TextFont: Geneva
TextSize: 9
Name: CreatedLabel
WhiteColor: -8739,-8739,-8739
TextAlign: Right
Text: Created:
ItemType: TEXT
Rect: 56,137,108,148
TextFont: Geneva
TextSize: 9
AutoSize: FALSE
Name: Created
WhiteColor: -8739,-8739,-8739
Text: 3/8/95
Balloon: This is the date that the title was last changed.
ItemType: TEXT
Rect: 134,137,180,149
TextFont: Geneva
TextSize: 9
Name: ModifiedLabel
WhiteColor: -8739,-8739,-8739
TextAlign: Right
Text: Modified:
ItemType: TEXT
Rect: 182,137,234,148
TextFont: Geneva
TextSize: 9
AutoSize: FALSE
Name: Modified
WhiteColor: -8739,-8739,-8739
Text: 11/12/97
Balloon: This is the date that the title was last changed.
ItemType: TEXT
Rect: 257,137,357,149
TextFont: Geneva
TextSize: 9
Name: DescriptionModifiedLabel
WhiteColor: -8739,-8739,-8739
TextAlign: Right
Text: Description Modified:
ItemType: TEXT
Rect: 360,137,412,149
TextFont: Geneva
TextSize: 9
AutoSize: FALSE
Name: DescriptionModified
WhiteColor: -8739,-8739,-8739
Text: 3/11/95
Balloon: This is the date that the title was last changed.